<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Font Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_font.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_vect_sharp_1_1_font-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Font Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents a typeface with a specific size.   
 <a href="class_vect_sharp_1_1_font.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font_1_1_detailed_font_metrics.html">DetailedFontMetrics</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents detailed information about the metrics of a text string when drawn with a certain font.   <a href="class_vect_sharp_1_1_font_1_1_detailed_font_metrics.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font_1_1_font_underline.html">FontUnderline</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents options to underline text.   <a href="class_vect_sharp_1_1_font_1_1_font_underline.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7ca6bbb1701e313fbd493925d87ab68c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#a7ca6bbb1701e313fbd493925d87ab68c">Font</a> (<a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a> fontFamily, double fontSize)</td></tr>
<tr class="memdesc:a7ca6bbb1701e313fbd493925d87ab68c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> object, given the base typeface and the font size.   <a href="class_vect_sharp_1_1_font.html#a7ca6bbb1701e313fbd493925d87ab68c">More...</a><br /></td></tr>
<tr class="separator:a7ca6bbb1701e313fbd493925d87ab68c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad58e1d75a00150246f3f8fe70f16b441"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#ad58e1d75a00150246f3f8fe70f16b441">Font</a> (<a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a> fontFamily, double fontSize, bool underlined)</td></tr>
<tr class="memdesc:ad58e1d75a00150246f3f8fe70f16b441"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> object, given the base typeface, the font size, and a boolean value determining whether text using this font should be underlined.   <a href="class_vect_sharp_1_1_font.html#ad58e1d75a00150246f3f8fe70f16b441">More...</a><br /></td></tr>
<tr class="separator:ad58e1d75a00150246f3f8fe70f16b441"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd743fe219ba890ed8f616e7971b0a21"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#acd743fe219ba890ed8f616e7971b0a21">Font</a> (<a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a> fontFamily, double fontSize, <a class="el" href="class_vect_sharp_1_1_font_1_1_font_underline.html">FontUnderline</a> underline)</td></tr>
<tr class="memdesc:acd743fe219ba890ed8f616e7971b0a21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> object, given the base typeface, the font size, and an object describing the underline properties of text drawn using this font.   <a href="class_vect_sharp_1_1_font.html#acd743fe219ba890ed8f616e7971b0a21">More...</a><br /></td></tr>
<tr class="separator:acd743fe219ba890ed8f616e7971b0a21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0454735ccd8dad959278d3b19af39d7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_size.html">Size</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#ab0454735ccd8dad959278d3b19af39d7">MeasureText</a> (string text)</td></tr>
<tr class="memdesc:ab0454735ccd8dad959278d3b19af39d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Measure the size of a text string when typeset with this font.   <a href="class_vect_sharp_1_1_font.html#ab0454735ccd8dad959278d3b19af39d7">More...</a><br /></td></tr>
<tr class="separator:ab0454735ccd8dad959278d3b19af39d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81baafc21112d990aa2ffbd39cffc4c9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vect_sharp_1_1_font_1_1_detailed_font_metrics.html">DetailedFontMetrics</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#a81baafc21112d990aa2ffbd39cffc4c9">MeasureTextAdvanced</a> (string text)</td></tr>
<tr class="memdesc:a81baafc21112d990aa2ffbd39cffc4c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Measure all the metrics of a text string when typeset with this font.   <a href="class_vect_sharp_1_1_font.html#a81baafc21112d990aa2ffbd39cffc4c9">More...</a><br /></td></tr>
<tr class="separator:a81baafc21112d990aa2ffbd39cffc4c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:aed90605264d6aef7dcda4dda7c86c4a7"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#aed90605264d6aef7dcda4dda7c86c4a7">EnableKerning</a> = true</td></tr>
<tr class="memdesc:aed90605264d6aef7dcda4dda7c86c4a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether text kerning is enabled. Note that, even when this is set to <code>false</code>, text kerning will be applied on some platforms. For the best consistency, leave this set to <code>true</code>.   <a href="class_vect_sharp_1_1_font.html#aed90605264d6aef7dcda4dda7c86c4a7">More...</a><br /></td></tr>
<tr class="separator:aed90605264d6aef7dcda4dda7c86c4a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a6c93e01c0a71a6ff0f084c8936ff27ab"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#a6c93e01c0a71a6ff0f084c8936ff27ab">FontSize</a><code> [get]</code></td></tr>
<tr class="memdesc:a6c93e01c0a71a6ff0f084c8936ff27ab"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> size, in graphics units.   <a href="class_vect_sharp_1_1_font.html#a6c93e01c0a71a6ff0f084c8936ff27ab">More...</a><br /></td></tr>
<tr class="separator:a6c93e01c0a71a6ff0f084c8936ff27ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeace0fc0ce6e769d69fb250a03772204"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#aeace0fc0ce6e769d69fb250a03772204">FontFamily</a><code> [get]</code></td></tr>
<tr class="memdesc:aeace0fc0ce6e769d69fb250a03772204"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> typeface.   <a href="class_vect_sharp_1_1_font.html#aeace0fc0ce6e769d69fb250a03772204">More...</a><br /></td></tr>
<tr class="separator:aeace0fc0ce6e769d69fb250a03772204"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb29d0d9ad91f74c8b08155db52bead8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#adb29d0d9ad91f74c8b08155db52bead8">Ascent</a><code> [get]</code></td></tr>
<tr class="memdesc:adb29d0d9ad91f74c8b08155db52bead8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum height over the baseline of the usual glyphs in the font (there may be glyphs taller than this). Always &gt;= 0.   <a href="class_vect_sharp_1_1_font.html#adb29d0d9ad91f74c8b08155db52bead8">More...</a><br /></td></tr>
<tr class="separator:adb29d0d9ad91f74c8b08155db52bead8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00d586174b8588597de2c73a246373a0"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#a00d586174b8588597de2c73a246373a0">WinAscent</a><code> [get]</code></td></tr>
<tr class="memdesc:a00d586174b8588597de2c73a246373a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Height above the baseline for a clipping region (Windows ascent). Always &gt;= 0.   <a href="class_vect_sharp_1_1_font.html#a00d586174b8588597de2c73a246373a0">More...</a><br /></td></tr>
<tr class="separator:a00d586174b8588597de2c73a246373a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17b1bee67490f8075fb7e073b6390c82"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#a17b1bee67490f8075fb7e073b6390c82">Descent</a><code> [get]</code></td></tr>
<tr class="memdesc:a17b1bee67490f8075fb7e073b6390c82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum depth below the baseline of the usual glyphs in the font (there may be glyphs deeper than this). Always &lt;= 0.   <a href="class_vect_sharp_1_1_font.html#a17b1bee67490f8075fb7e073b6390c82">More...</a><br /></td></tr>
<tr class="separator:a17b1bee67490f8075fb7e073b6390c82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af49cf0ea00b44ec70a4cbbc220debc00"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#af49cf0ea00b44ec70a4cbbc220debc00">YMax</a><code> [get]</code></td></tr>
<tr class="memdesc:af49cf0ea00b44ec70a4cbbc220debc00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Absolute maximum height over the baseline of the glyphs in the font. Always &gt;= 0.   <a href="class_vect_sharp_1_1_font.html#af49cf0ea00b44ec70a4cbbc220debc00">More...</a><br /></td></tr>
<tr class="separator:af49cf0ea00b44ec70a4cbbc220debc00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51ff497fa243de54d22fbcbd0146aeca"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#a51ff497fa243de54d22fbcbd0146aeca">YMin</a><code> [get]</code></td></tr>
<tr class="memdesc:a51ff497fa243de54d22fbcbd0146aeca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Absolute maximum depth below the baseline of the glyphs in the font. Always &lt;= 0.   <a href="class_vect_sharp_1_1_font.html#a51ff497fa243de54d22fbcbd0146aeca">More...</a><br /></td></tr>
<tr class="separator:a51ff497fa243de54d22fbcbd0146aeca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad17aa413e1b7b0c45cabb1528c657c8e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vect_sharp_1_1_font_1_1_font_underline.html">FontUnderline</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_font.html#ad17aa413e1b7b0c45cabb1528c657c8e">Underline</a><code> [get]</code></td></tr>
<tr class="memdesc:ad17aa413e1b7b0c45cabb1528c657c8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the underline style of text drawn using this font. If this is <code>null</code>, the text is not underlined.   <a href="class_vect_sharp_1_1_font.html#ad17aa413e1b7b0c45cabb1528c657c8e">More...</a><br /></td></tr>
<tr class="separator:ad17aa413e1b7b0c45cabb1528c657c8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a typeface with a specific size.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00029">29</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7ca6bbb1701e313fbd493925d87ab68c" name="a7ca6bbb1701e313fbd493925d87ab68c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ca6bbb1701e313fbd493925d87ab68c">&#9670;&#160;</a></span>Font() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Font.Font </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a>&#160;</td>
          <td class="paramname"><em>fontFamily</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>fontSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> object, given the base typeface and the font size.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fontFamily</td><td>Base typeface. See <a class="el" href="class_vect_sharp_1_1_font_family.html" title="Represents a typeface.">FontFamily</a>.</td></tr>
    <tr><td class="paramname">fontSize</td><td>The font size, in graphics units.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00166">166</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="ad58e1d75a00150246f3f8fe70f16b441" name="ad58e1d75a00150246f3f8fe70f16b441"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad58e1d75a00150246f3f8fe70f16b441">&#9670;&#160;</a></span>Font() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Font.Font </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a>&#160;</td>
          <td class="paramname"><em>fontFamily</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>fontSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>underlined</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> object, given the base typeface, the font size, and a boolean value determining whether text using this font should be underlined.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fontFamily</td><td>Base typeface. See <a class="el" href="class_vect_sharp_1_1_font_family.html" title="Represents a typeface.">FontFamily</a>.</td></tr>
    <tr><td class="paramname">fontSize</td><td>The font size, in graphics units.</td></tr>
    <tr><td class="paramname">underlined</td><td>A boolean value determining whether text drawn using this font should be underlined. The appearance of the underline can be tweaked by changing the properties of the <a class="el" href="class_vect_sharp_1_1_font.html#ad17aa413e1b7b0c45cabb1528c657c8e" title="Determines the underline style of text drawn using this font. If this is null, the text is not underl...">Underline</a> property after the font has been created.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00178">178</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="acd743fe219ba890ed8f616e7971b0a21" name="acd743fe219ba890ed8f616e7971b0a21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd743fe219ba890ed8f616e7971b0a21">&#9670;&#160;</a></span>Font() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Font.Font </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a>&#160;</td>
          <td class="paramname"><em>fontFamily</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>fontSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_font_1_1_font_underline.html">FontUnderline</a>&#160;</td>
          <td class="paramname"><em>underline</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> object, given the base typeface, the font size, and an object describing the underline properties of text drawn using this font.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fontFamily</td><td>Base typeface. See <a class="el" href="class_vect_sharp_1_1_font_family.html" title="Represents a typeface.">FontFamily</a>.</td></tr>
    <tr><td class="paramname">fontSize</td><td>The font size, in graphics units.</td></tr>
    <tr><td class="paramname">underline</td><td>A <a class="el" href="class_vect_sharp_1_1_font_1_1_font_underline.html" title="Represents options to underline text.">FontUnderline</a> object describing the underline properties of text drawn using this font.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00195">195</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab0454735ccd8dad959278d3b19af39d7" name="ab0454735ccd8dad959278d3b19af39d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0454735ccd8dad959278d3b19af39d7">&#9670;&#160;</a></span>MeasureText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_size.html">Size</a> VectSharp.Font.MeasureText </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Measure the size of a text string when typeset with this font.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>The string to measure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_size.html" title="Represents the size of an object.">Size</a> object representing the width and height of the text.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00302">302</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="a81baafc21112d990aa2ffbd39cffc4c9" name="a81baafc21112d990aa2ffbd39cffc4c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81baafc21112d990aa2ffbd39cffc4c9">&#9670;&#160;</a></span>MeasureTextAdvanced()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vect_sharp_1_1_font_1_1_detailed_font_metrics.html">DetailedFontMetrics</a> VectSharp.Font.MeasureTextAdvanced </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Measure all the metrics of a text string when typeset with this font.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>The string to measure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_font_1_1_detailed_font_metrics.html" title="Represents detailed information about the metrics of a text string when drawn with a certain font.">DetailedFontMetrics</a> object representing the metrics of the text.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00359">359</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aed90605264d6aef7dcda4dda7c86c4a7" name="aed90605264d6aef7dcda4dda7c86c4a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed90605264d6aef7dcda4dda7c86c4a7">&#9670;&#160;</a></span>EnableKerning</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool VectSharp.Font.EnableKerning = true</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determines whether text kerning is enabled. Note that, even when this is set to <code>false</code>, text kerning will be applied on some platforms. For the best consistency, leave this set to <code>true</code>.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00034">34</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="adb29d0d9ad91f74c8b08155db52bead8" name="adb29d0d9ad91f74c8b08155db52bead8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb29d0d9ad91f74c8b08155db52bead8">&#9670;&#160;</a></span>Ascent</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Font.Ascent</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Maximum height over the baseline of the usual glyphs in the font (there may be glyphs taller than this). Always &gt;= 0.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00205">205</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="a17b1bee67490f8075fb7e073b6390c82" name="a17b1bee67490f8075fb7e073b6390c82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17b1bee67490f8075fb7e073b6390c82">&#9670;&#160;</a></span>Descent</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Font.Descent</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Maximum depth below the baseline of the usual glyphs in the font (there may be glyphs deeper than this). Always &lt;= 0.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00241">241</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="aeace0fc0ce6e769d69fb250a03772204" name="aeace0fc0ce6e769d69fb250a03772204"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeace0fc0ce6e769d69fb250a03772204">&#9670;&#160;</a></span>FontFamily</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vect_sharp_1_1_font_family.html">FontFamily</a> VectSharp.Font.FontFamily</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> typeface.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00159">159</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="a6c93e01c0a71a6ff0f084c8936ff27ab" name="a6c93e01c0a71a6ff0f084c8936ff27ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c93e01c0a71a6ff0f084c8936ff27ab">&#9670;&#160;</a></span>FontSize</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Font.FontSize</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="class_vect_sharp_1_1_font.html" title="Represents a typeface with a specific size.">Font</a> size, in graphics units.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00154">154</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="ad17aa413e1b7b0c45cabb1528c657c8e" name="ad17aa413e1b7b0c45cabb1528c657c8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad17aa413e1b7b0c45cabb1528c657c8e">&#9670;&#160;</a></span>Underline</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vect_sharp_1_1_font_1_1_font_underline.html">FontUnderline</a> VectSharp.Font.Underline</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determines the underline style of text drawn using this font. If this is <code>null</code>, the text is not underlined.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00295">295</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="a00d586174b8588597de2c73a246373a0" name="a00d586174b8588597de2c73a246373a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00d586174b8588597de2c73a246373a0">&#9670;&#160;</a></span>WinAscent</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Font.WinAscent</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Height above the baseline for a clipping region (Windows ascent). Always &gt;= 0.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00223">223</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="af49cf0ea00b44ec70a4cbbc220debc00" name="af49cf0ea00b44ec70a4cbbc220debc00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af49cf0ea00b44ec70a4cbbc220debc00">&#9670;&#160;</a></span>YMax</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Font.YMax</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Absolute maximum height over the baseline of the glyphs in the font. Always &gt;= 0.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00259">259</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<a id="a51ff497fa243de54d22fbcbd0146aeca" name="a51ff497fa243de54d22fbcbd0146aeca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51ff497fa243de54d22fbcbd0146aeca">&#9670;&#160;</a></span>YMin</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Font.YMin</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Absolute maximum depth below the baseline of the glyphs in the font. Always &lt;= 0.  </p>

<p class="definition">Definition at line <a class="el" href="_font_8cs_source.html#l00277">277</a> of file <a class="el" href="_font_8cs_source.html">Font.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp/<a class="el" href="_font_8cs_source.html">Font.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_font.html">Font</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
